import request from '@/utils/request'

// 查询所有商品入柜列表
export function listAllGoodsUpVehicleBox() {
  return request({
    url: '/vehicle/box/goodsUpVehicleBox/listAll',
    method: 'get'
  })
}

// 分页查询商品入柜列表
export function listGoodsUpVehicleBox(query) {
  return request({
    url: '/vehicle/box/goodsUpVehicleBox/pageList',
    method: 'get',
    params: query
  })
}

// 查询商品入柜详细
export function getGoodsUpVehicleBox(id) {
  return request({
    url: '/vehicle/box/goodsUpVehicleBox/query/' + id,
    method: 'get'
  })
}

// 新增商品入柜
export function addGoodsUpVehicleBox(data) {
  return request({
    url: '/vehicle/box/goodsUpVehicleBox/add',
    method: 'post',
    data: data
  })
}

// 修改商品入柜
export function updateGoodsUpVehicleBox(data) {
  return request({
    url: '/vehicle/box/goodsUpVehicleBox/edit',
    method: 'put',
    data: data
  })
}

// 删除商品入柜
export function delGoodsUpVehicleBox(ids) {
  return request({
    url: '/vehicle/box/goodsUpVehicleBox/remove/' + ids,
    method: 'delete'
  })
}

// 入柜
export function updateUpVehicleBox(data) {
  return request({
    url: '/vehicle/box/goodsUpVehicleBox/updateUpVehicleBox',
    method: 'post',
    data
  })
}
